close
Skip to content

chore: use oxfmt sortImports - #23319

Merged
sapphi-red merged 3 commits into
mainfrom
chore/use-oxfmt-sortimports
Aug 22, 2026
Merged

chore: use oxfmt sortImports#23319
sapphi-red merged 3 commits into
mainfrom
chore/use-oxfmt-sortimports

Conversation

@sapphi-red

@sapphi-red sapphi-red commented Aug 21, 2026

Copy link
Copy Markdown
Member

import-x/order rule is not implemented in oxlint as a native rule and oxfmt has sortImports option that has similar functionality. This PR migrates it so that it is easier to migrate to oxlint later. It should be more performant as well.

sortImports seems to sort the order within the groups. The original eslint-plugin-perfectionist/sort-imports has type option which can disable this, but it seems oxfmt does not support that option. I think it's nice to have this sorting.

@sapphi-red
sapphi-red force-pushed the chore/use-oxfmt-sortimports branch from a7f63ee to 9b5a168 Compare August 21, 2026 02:41
@sapphi-red sapphi-red changed the title chore: use oxfmt sortimports chore: use oxfmt sortImports Aug 21, 2026
@sapphi-red
sapphi-red force-pushed the chore/use-oxfmt-sortimports branch from 9b5a168 to 523d767 Compare August 21, 2026 11:42
@sapphi-red sapphi-red added the p1-chore Doesn't change code behavior (priority) label Aug 21, 2026
@sapphi-red

Copy link
Copy Markdown
Member Author

After merging we should add the commit to https://github.com/vitejs/vite/blob/main/.git-blame-ignore-revs

@sapphi-red
sapphi-red marked this pull request as ready for review August 21, 2026 12:00
@sapphi-red
sapphi-red merged commit 97ad042 into main Aug 22, 2026
28 of 32 checks passed
@sapphi-red
sapphi-red deleted the chore/use-oxfmt-sortimports branch August 22, 2026 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

p1-chore Doesn't change code behavior (priority)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants